﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using WindowsFormsApp1;

namespace WindowsFormsApp1
{
    public partial class login : Form
    {
        public login()
        {
            InitializeComponent();
        }

        private void btnEnter_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked) // 教材信息维护
            {
                ManageBooks manageForm = new ManageBooks(); // 打开教材信息维护界面
                manageForm.Show();
            }
            else if (radioButton2.Checked) // 订单管理
            {
                ManageOrders orderForm = new ManageOrders(); // 打开订单管理界面
                orderForm.Show();
            }
            this.Hide(); // 隐藏登录界面
        }

        private void login_Load(object sender, EventArgs e)
        {

        }
    }
}
